# apps/system/strategies.py
from apps.zhihu.strategies import ZhihuDeleteStrategy, ZhihuDataQueryStrategy
from apps.xhs.strategies import XhsDeleteStrategy, XhsDataQueryStrategy
from apps.tieba.strategies import TiebaDeleteStrategy
class DeleteStrategyFactory:
    @staticmethod
    def create_strategy(platform):
        if platform == 'zhihu':
            return ZhihuDeleteStrategy()
        elif platform == 'xhs':
            return XhsDeleteStrategy()
        elif platform == 'tieba':
            return TiebaDeleteStrategy()
        else:
            raise ValueError(f"Unsupported platform: {platform}")
        

class BaseDataQueryStrategy:
    @staticmethod
    def get_strategy(platform_name: str):
        if platform_name == 'zhihu':
            return ZhihuDataQueryStrategy()
        elif platform_name == 'xhs':
            return XhsDataQueryStrategy()

